package com.bgs.travelapp.papersType.controller;

import com.bgs.travelapp.page.PageRequest;
import com.bgs.travelapp.papersType.service.PapersTypeService;
import com.bgs.travelapp.result.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 身份证件类型模块
 * lzy 2022-8-18 14点55分
 */
@RequestMapping("/papersType")
@CrossOrigin
@RestController
public class PapersTypeController {

    @Autowired
    PapersTypeService papersTypeService;

    /**
     * 获取身份证件列表
     * lzy 2022-8-18 15点01分
     * @return
     */
    @GetMapping("/getPapersTypeList")
    public CommonResult getPapersTypeList(){
        return papersTypeService.getPapersTypeList();
    }

}
